﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using famails.bus;
using famails.common;

namespace famails.BackEnd
{
    public partial class emailtrack : System.Web.UI.Page
    {
        SendRegisterDetailBUS srdBUS = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["id"] != null)
                    StampSentEmail(Request.Params["ID"].ToString());
            }
            Response.Redirect("none.gif");
        }
        private void StampSentEmail(string sReadID)
        {
            srdBUS = new SendRegisterDetailBUS();
            ConnectionData.OpenMyConnection();
            srdBUS.tblSendMail_UpdateOpenMail(decimal.Parse(sReadID));
            ConnectionData.CloseMyConnection();
        }
        //private void StampSentEmail(string sReadID, string Email)
        //{
        //    ConnectionData.OpenMyConnection();
        //    srdBUS.tblSendRegisterDetail_UpdateOpenMail(int.Parse(sReadID), true, DateTime.Now, Email);
        //    ConnectionData.CloseMyConnection();
        //}
        //private void StampSentEvenyEmail(string sReadID, string Email)
        //{
        //    ConnectionData.OpenMyConnection();
        //    srdBUS.tblSendEventDetail_UpdateOpenMail(int.Parse(sReadID), true, DateTime.Now, Email);
        //    ConnectionData.CloseMyConnection();
        //}
    }
}